package com.mxpio.erp.common.technology.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import com.mxpioframework.security.entity.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@IdClass(value = ItemPropKey.class)
@Table(name = "MB_ERP_INVENTORY_ITEM_LEAD_TIME_PROP")
@Schema(description="物料提前期属性")
public class ItemLeadTimeProp extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "PROP_TYPE_")
	@Schema(description = "属性类别")
	private String propType;
	
	@Id
	@Column(name = "CODE_")
	@Schema(description = "物料/物料组编码")
	private String code;
	
	@Column(name = "FIXED_LEAD_TIME_")
	@Schema(description = "固定提前期")
	private BigDecimal fixedLeadTime;
	
	@Column(name = "VAR_LEAD_TIME_")
	@Schema(description = "变量提前期")
	private BigDecimal varLeadTime;
	
	@Column(name = "PRE_PROCESS_TIME_")
	@Schema(description = "预加工周期")
	private BigDecimal preProcessTime;
	
	@Column(name = "LEAD_LOT_SIZE_")
	@Schema(description = "提前期批量")
	private BigDecimal leadLotSize;
	
}
